package com.ruoyi.map.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.hpsf.Decimal;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author sangsijing
 * @since 2025/5/8 18:10
 */
@Data
public class PmsProduct {

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("BRAND_ID")
    private Long brandId;

    @ApiModelProperty("CATEGORY_ID")
    private Long categoryId;

    @ApiModelProperty("商品编码")
    private String outProductId;

    @ApiModelProperty("NAME")
    private String name;

    @ApiModelProperty("主图")
    private String pic;

    @ApiModelProperty("画册图片，连产品图片限制为5张，以逗号分割")
    private String albumPics;

    @ApiModelProperty("上架状态：0->下架；1->上架")
    private Integer publishStatus;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("PRICE")
    private BigDecimal price;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("商品重量，默认为克")
    private BigDecimal weight;

    @ApiModelProperty("商品销售属性，json格式")
    private String productAttr;

    @ApiModelProperty("产品详情网页内容")
    private String detailHtml;

    @ApiModelProperty("移动端网页详情")
    private String detailMobileHtml;

    @ApiModelProperty("品牌名称")
    private String brandName;

    @ApiModelProperty("商品分类名称")
    private String productCategoryName;

    @ApiModelProperty("钓鱼方式")
    private String fishingType;

    @ApiModelProperty("是否包邮")
    private String postage;

    @ApiModelProperty("商品发货地")
    private String shipAddress;

    @ApiModelProperty("精选服务")
    private String service;

    @ApiModelProperty("原价")
    private String originalPrice;

    @ApiModelProperty("促销状态")
    private String promotionStatus;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("标签id")
    private String labelId;

    @ApiModelProperty("销量")
    private Long sales;

    @ApiModelProperty("参数配置")
    private String paramsJson;
}
